﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Actuals.CoreDomain.Data;
using Actuals.CoreDomain;
using Actuals.Data;
using Actuals.CoreDomain.Business;

namespace Actuals.Business
{
    public class BusinessTeam : IBusinessTeam
    {
        private IDalTeam _dalTeam;

        public BusinessTeam(IDalTeam dalTeam)
        {
            _dalTeam = dalTeam;
        }

        public BusinessTeam()
        {
            _dalTeam = new DalTeam();
        }

        public IList<ITeam> GetTeams()
        {
            return _dalTeam.GetTeams();
        }

        public ITeam  GetTeam(int teamId)
        {
            return _dalTeam.GetTeam(teamId);
        }

        public int AddTeam(ITeam team)
        {
            return _dalTeam.AddTeam(team);
        }

        public int UpdateTeam(ITeam team)
        {
            return _dalTeam.UpdateTeam(team);
        }

        public bool DeleteTeam(int teamId)
        {
            return _dalTeam.DeleteTeam(teamId);
        }

    }
}


 